package day4.作业1026.作业04;

public class Plane {
    private int weight;//自重
    private int height;//飞行高度

    public Plane() {
    }

    public Plane(int weight, int height) {
        this.weight = weight;
        this.height = height;
    }

    public int getWeight() {
        return weight;
    }

    public void setWeight(int weight) {
        this.weight = weight;
    }

    public int getHeight() {
        return height;
    }

    public void setHeight(int height) {
        this.height = height;
    }
    public void fly(){
        System.out.println("飞机起飞");
    }
    public void jiashu(){
        System.out.println("飞机加速");
    }
    public void jiangluo(){
        System.out.println("飞机降落");
    }
    public void show(){
        System.out.println("质量"+weight+"飞行高度"+height);
    }
}
